package com.software.model;
/*
 *实体层-商品类
 */

public class Product {
    private String productId;
    private String productName;
    private Double productPrice;
    private String productDesc;
    private String productImage;
    private  Integer typeId;
    private Double quantity;
    private  Boolean recommend;

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public Double getProductPrice() {
        return productPrice;
    }

    public void setProductPrice(Double productPrice) {
        this.productPrice = productPrice;
    }

    public String getProductDesc() {
        return productDesc;
    }

    public void setProductDesc(String productDesc) {
        this.productDesc = productDesc;
    }

    public String getProductImage() {
        return productImage;
    }

    public void setProductImage(String productImage) {
        this.productImage = productImage;
    }

    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }

    public Double getQuantity() {
        return quantity;
    }

    public void setQuantity(Double quantity) {
        this.quantity = quantity;
    }

    public Boolean getRecommend() {
        return recommend;
    }

    public void setRecomment(Boolean recommend) {
        this.recommend = recommend;
    }

    public Product(String productId, String productName, Double productPrice, String productDesc, String productImage, Integer typeId, Double quantity, Boolean recommend) {
        this.productId = productId;
        this.productName = productName;
        this.productPrice = productPrice;
        this.productDesc = productDesc;
        this.productImage = productImage;
        this.typeId = typeId;
        this.quantity = quantity;
        this.recommend = recommend;
    }

    @Override
    public String toString() {
        return "Product{" +
                "productId='" + productId + '\'' +
                ", productName='" + productName + '\'' +
                ", productPrice=" + productPrice +
                ", productDesc='" + productDesc + '\'' +
                ", productImage='" + productImage + '\'' +
                ", typeId=" + typeId +
                ", quantity=" + quantity +
                ", recomment=" + recommend +
                '}';
    }
}
